package com.itheima.askme.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author dafei
 * @since 2022-06-14
 */
@Data
@Getter
@Setter
@ToString
public class Question implements Serializable {

    public   static  final  int STATUS_SOLVED=0;
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String title;

    private Integer score;

    private Long askId;
     @TableField(exist = false)
    private  User ask;

    private int status;

    private int replynum;

    private int viewnum;

    private String content;

    private Date createTime;

}
